<?php
//权限添加 更新权限 默认状态
require_once("./DButil.php");
$powerid=$_REQUEST["powerId"];
$sql="select powerId,powerName,powerPath from t_power where powerId='{$powerid}' ";
$arr=query($sql)[0];//返回一条数据
header("Content-Type:application/json;charset=utf-8");
echo json_encode($arr);
?>